//
//  WLTabBarItem.h
//  WLTabBar
//
//  Created by tanxl on 2019/12/29.
//  Copyright © 2019 tanxl. All rights reserved.
//

#import <UIKit/UIKit.h>
@class WLTabBarItem;

typedef enum : NSUInteger {
    WLTabBarItemTypeNormal,
    WLTabBarItemTypeOnlyImage,
    WLTabBarItemTypeButton,
} WLTabBarItemType;

extern NSString *const kGTNotificationTabBarItemChanged;


@protocol WLTabBarItemDelegate <NSObject>
/** 点击响应 */
- (void)onClickTabBarItem:(WLTabBarItem *)tabBarItem;

@end
@interface WLTabBarItem : UIView
@property(nonatomic,weak) id <WLTabBarItemDelegate> delegate;

- (instancetype)initWithType:(WLTabBarItemType)tabBarItemType;
/** 关联的原生TabBarItem */
@property (nonatomic, strong) UITabBarItem *tabBarItem;
/** 选择状态 */
@property (nonatomic, assign, getter=isSelected) BOOL selected;
/** 文字默认颜色 */
@property (nonatomic, strong) UIColor *itemTitleColor;
/** 文字选中颜色 */
@property (nonatomic, strong) UIColor *selectedItemTitleColor;
/** 文字字体 */
@property (nonatomic, strong) UIFont *itemTitleFont;
/** Badge字体 */
@property (nonatomic, strong) UIFont *badgeTitleFont;

@end

